def encode(plain_text):
    lower_txt = plain_text.lower()
    code = ''
    for i in lower_txt:
        if (len(code)+1) % 6 == 0:
            code += ' '
        if i.isdigit():
            code += i
        elif i.isalpha():
            code += chr(219-ord(i))
        else:
            continue  
    return code.strip()


def decode(ciphered_text):
    code = ''
    for i in ciphered_text:
        if i.isdigit():
            code += i
        elif i.isalpha():
            code += chr(219-ord(i))
        else:
            continue
    return code